{//管理帖子加精、置顶、编辑、删除模块}
{if (session('?user_name'))}
<div class="detail-assist">
	<div class="fly-admin-box" data-id="{$article.id}">
		{if ($user.auth ?? '')}
			{if($article.flags.is_top == 0)}
			<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="1" style="background-color:#ccc;" title="置顶">顶</span> 
			{else /}
				<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="0" title="取消置顶">顶</span>
			{/if}
			{if($article.flags.is_good == 0)}
				<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="1" style="background-color:#ccc;" title="加精">精</span> 
			{else /}
				<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" title="取消加精">精</span>
			{/if}
			{if($article.is_comment == 1)}
			<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="0" title="禁评">评</span>
			{else /}
			<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="1" style="background-color:#ccc;" title="可评">评</span>
			{/if}
			<span class="layui-btn layui-btn-xs jie-admin" type="del" title="删除"><i class="layui-icon layui-icon-delete"></i></span>
		{/if}
		
		{if (session('user_name') == $article.user.name  || ($user.auth  ?? ''))}
		<a  href="{:url('article_edit', ['id' => $article.id])}" title="编辑"><span class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i></span></a>
		{/if}
	</div>
</div>
{/if}